package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 游记评论
 */
@Setter
@Getter
@Document("tourist_comment")
public class TouristComment implements Serializable {
    public static final int TRAVLE_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int TRAVLE_COMMENT_TYPE = 1; //评论的评论
    @Id
    private String  id; //评论id
    private Long touristId;  //景点id
    private String touristTitle; //景点标题

    private Long userId;    //用户id
    private String username; //用户名
    private String city;
    private int level;
    private String headUrl;   // 用户头像

   // private String act;
    //private Long poiid;

    private String rank; //评价指数 几颗星
    private String scene_rank; //风光
    private String feature_rank;//特色
    private String service_rank; //服务

    private int type = TRAVLE_COMMENT_TYPE_COMMENT; //评论类别

    private Date createTime; //创建时间
    private String comment;  //评论内容

    private int thumbupnum;     //点赞数
    private List<Long> thumbuplist = new ArrayList<>(); //谁点赞,把谁加进去

    private Integer commentCount;//回复评论的数量



    private TouristComment refComment;  //关联的评论
}
